import request from '@/utils/request'


export function getList(query) {
  return request({
    url: '/api/operate/batch_list',
    method: 'get',
    params: query
  })
}


export function batch(exam_id) {
  return request({
    url: '/api/operate/operate_batch',
    method: 'get',
    params: {
      all_exam_id: exam_id
    }
  })
}


export function draw(exam_id) {
  return request({
    url: '/api/operate/operate_draw',
    method: 'get',
    params: {
      all_exam_id: exam_id
    }
  })
}

export function drawList(query) {
  return request({
    url: '/api/operate/draw_list',
    method: 'get',
    params: query
  })
}

export function teacherList(query) {
  return request({
    url: '/api/operate/teacher_list',
    method: 'get',
    params: query
  })
}
